package com.ruoyi.carShopService.service.impl;

import com.ruoyi.carShopService.mapper.RegisterShopUserMapper;
import com.ruoyi.carShopService.service.RegisterShopUserService;
import com.ruoyi.system.api.domain.CarMerchant;
import com.ruoyi.system.api.domain.CarMerchantPrincipal;
import com.ruoyi.system.api.domain.CarMerchantVerification;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class RegisterShopUserServiceImpl implements RegisterShopUserService {

    @Autowired
    private RegisterShopUserMapper registerShopUserMapper;

    @Override
    @Transactional
    public void updateShopUser(CarMerchant carMerchant, CarMerchantPrincipal principal, CarMerchantVerification verification) {
        Integer num1 = registerShopUserMapper.updateCarMerchant(carMerchant);
        Integer num2 = registerShopUserMapper.updateCarMerchantPrincipal(principal);
        Integer num3 = registerShopUserMapper.updateCarMerchantVerification(verification);
    }
}
